3.1155 \(\int \sqrt {3-6 x} \sqrt {2+4 x} \, dx\)

Optimal. Leaf size=43 \[ \sqrt {\frac {3}{2}} \sqrt {1-2 x} \sqrt {2 x+1} x+\frac {1}{2} \sqrt {\frac {3}{2}} \sin ^{-1}(2 x) \]

[Out]

1/4*arcsin(2*x)*6^(1/2)+1/2*x*6^(1/2)*(1-2*x)^(1/2)*(1+2*x)^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 43, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.158, Rules used = {38, 41, 216} \[ \sqrt {\frac {3}{2}} \sqrt {1-2 x} \sqrt {2 x+1} x+\frac {1}{2} \sqrt {\frac {3}{2}} \sin ^{-1}(2 x) \]

Antiderivative was successfully verified.

[In]

Int[Sqrt[3 - 6*x]*Sqrt[2 + 4*x],x]

[Out]

Sqrt[3/2]*Sqrt[1 - 2*x]*x*Sqrt[1 + 2*x] + (Sqrt[3/2]*ArcSin[2*x])/2

Rule 38

Int[((a_) + (b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(m_), x_Symbol] :> Simp[(x*(a + b*x)^m*(c + d*x)^m)/(2*m + 1)
, x] + Dist[(2*a*c*m)/(2*m + 1), Int[(a + b*x)^(m - 1)*(c + d*x)^(m - 1), x], x] /; FreeQ[{a, b, c, d}, x] &&
EqQ[b*c + a*d, 0] && IGtQ[m + 1/2, 0]

Rule 41

Int[((a_) + (b_.)*(x_))^(m_.)*((c_) + (d_.)*(x_))^(m_.), x_Symbol] :> Int[(a*c + b*d*x^2)^m, x] /; FreeQ[{a, b
, c, d, m}, x] && EqQ[b*c + a*d, 0] && (IntegerQ[m] || (GtQ[a, 0] && GtQ[c, 0]))

Rule 216

Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Simp[ArcSin[(Rt[-b, 2]*x)/Sqrt[a]]/Rt[-b, 2], x] /; FreeQ[{a, b}
, x] && GtQ[a, 0] && NegQ[b]

Rubi steps

\begin {align*} \int \sqrt {3-6 x} \sqrt {2+4 x} \, dx &=\sqrt {\frac {3}{2}} \sqrt {1-2 x} x \sqrt {1+2 x}+3 \int \frac {1}{\sqrt {3-6 x} \sqrt {2+4 x}} \, dx\\ &=\sqrt {\frac {3}{2}} \sqrt {1-2 x} x \sqrt {1+2 x}+3 \int \frac {1}{\sqrt {6-24 x^2}} \, dx\\ &=\sqrt {\frac {3}{2}} \sqrt {1-2 x} x \sqrt {1+2 x}+\frac {1}{2} \sqrt {\frac {3}{2}} \sin ^{-1}(2 x)\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 30, normalized size = 0.70 \[ \frac {1}{2} \sqrt {\frac {3}{2}} \left (2 \sqrt {1-4 x^2} x+\sin ^{-1}(2 x)\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[3 - 6*x]*Sqrt[2 + 4*x],x]

[Out]

(Sqrt[3/2]*(2*x*Sqrt[1 - 4*x^2] + ArcSin[2*x]))/2

________________________________________________________________________________________

fricas [A]  time = 0.44, size = 52, normalized size = 1.21 \[ \frac {1}{2} \, \sqrt {4 \, x + 2} x \sqrt {-6 \, x + 3} - \frac {1}{4} \, \sqrt {3} \sqrt {2} \arctan \left (\frac {\sqrt {3} \sqrt {2} \sqrt {4 \, x + 2} \sqrt {-6 \, x + 3}}{12 \, x}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((3-6*x)^(1/2)*(4*x+2)^(1/2),x, algorithm="fricas")

[Out]

1/2*sqrt(4*x + 2)*x*sqrt(-6*x + 3) - 1/4*sqrt(3)*sqrt(2)*arctan(1/12*sqrt(3)*sqrt(2)*sqrt(4*x + 2)*sqrt(-6*x +
 3)/x)

________________________________________________________________________________________

giac [A]  time = 1.07, size = 55, normalized size = 1.28 \[ \frac {1}{2} \, \sqrt {3} \sqrt {2} {\left (\sqrt {2 \, x + 1} {\left (x - 1\right )} \sqrt {-2 \, x + 1} + \sqrt {2 \, x + 1} \sqrt {-2 \, x + 1} + \arcsin \left (\frac {1}{2} \, \sqrt {2} \sqrt {2 \, x + 1}\right )\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((3-6*x)^(1/2)*(4*x+2)^(1/2),x, algorithm="giac")

[Out]

1/2*sqrt(3)*sqrt(2)*(sqrt(2*x + 1)*(x - 1)*sqrt(-2*x + 1) + sqrt(2*x + 1)*sqrt(-2*x + 1) + arcsin(1/2*sqrt(2)*
sqrt(2*x + 1)))

________________________________________________________________________________________

maple [B]  time = 0.00, size = 70, normalized size = 1.63 \[ \frac {\sqrt {\left (4 x +2\right ) \left (-6 x +3\right )}\, \sqrt {6}\, \arcsin \left (2 x \right )}{4 \sqrt {4 x +2}\, \sqrt {-6 x +3}}-\frac {\sqrt {4 x +2}\, \left (-6 x +3\right )^{\frac {3}{2}}}{12}+\frac {\sqrt {-6 x +3}\, \sqrt {4 x +2}}{4} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((-6*x+3)^(1/2)*(4*x+2)^(1/2),x)

[Out]

-1/12*(4*x+2)^(1/2)*(-6*x+3)^(3/2)+1/4*(-6*x+3)^(1/2)*(4*x+2)^(1/2)+1/4*((4*x+2)*(-6*x+3))^(1/2)/(4*x+2)^(1/2)
/(-6*x+3)^(1/2)*6^(1/2)*arcsin(2*x)

________________________________________________________________________________________

maxima [A]  time = 3.07, size = 22, normalized size = 0.51 \[ \frac {1}{2} \, \sqrt {-24 \, x^{2} + 6} x + \frac {1}{4} \, \sqrt {6} \arcsin \left (2 \, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((3-6*x)^(1/2)*(4*x+2)^(1/2),x, algorithm="maxima")

[Out]

1/2*sqrt(-24*x^2 + 6)*x + 1/4*sqrt(6)*arcsin(2*x)

________________________________________________________________________________________

mupad [B]  time = 0.26, size = 44, normalized size = 1.02 \[ \frac {x\,\sqrt {4\,x+2}\,\sqrt {3-6\,x}}{2}-\frac {\sqrt {6}\,\ln \left (x-\frac {\sqrt {1-2\,x}\,\sqrt {2\,x+1}\,1{}\mathrm {i}}{2}\right )\,1{}\mathrm {i}}{4} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((4*x + 2)^(1/2)*(3 - 6*x)^(1/2),x)

[Out]

(x*(4*x + 2)^(1/2)*(3 - 6*x)^(1/2))/2 - (6^(1/2)*log(x - ((1 - 2*x)^(1/2)*(2*x + 1)^(1/2)*1i)/2)*1i)/4

________________________________________________________________________________________

sympy [B]  time = 4.74, size = 187, normalized size = 4.35 \[ \begin {cases} - \frac {\sqrt {6} i \operatorname {acosh}{\left (\sqrt {x + \frac {1}{2}} \right )}}{2} + \frac {\sqrt {6} i \left (x + \frac {1}{2}\right )^{\frac {5}{2}}}{\sqrt {x - \frac {1}{2}}} - \frac {3 \sqrt {6} i \left (x + \frac {1}{2}\right )^{\frac {3}{2}}}{2 \sqrt {x - \frac {1}{2}}} + \frac {\sqrt {6} i \sqrt {x + \frac {1}{2}}}{2 \sqrt {x - \frac {1}{2}}} & \text {for}\: \left |{x + \frac {1}{2}}\right | > 1 \\\frac {\sqrt {6} \operatorname {asin}{\left (\sqrt {x + \frac {1}{2}} \right )}}{2} - \frac {\sqrt {6} \left (x + \frac {1}{2}\right )^{\frac {5}{2}}}{\sqrt {\frac {1}{2} - x}} + \frac {3 \sqrt {6} \left (x + \frac {1}{2}\right )^{\frac {3}{2}}}{2 \sqrt {\frac {1}{2} - x}} - \frac {\sqrt {6} \sqrt {x + \frac {1}{2}}}{2 \sqrt {\frac {1}{2} - x}} & \text {otherwise} \end {cases} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((3-6*x)**(1/2)*(4*x+2)**(1/2),x)

[Out]

Piecewise((-sqrt(6)*I*acosh(sqrt(x + 1/2))/2 + sqrt(6)*I*(x + 1/2)**(5/2)/sqrt(x - 1/2) - 3*sqrt(6)*I*(x + 1/2
)**(3/2)/(2*sqrt(x - 1/2)) + sqrt(6)*I*sqrt(x + 1/2)/(2*sqrt(x - 1/2)), Abs(x + 1/2) > 1), (sqrt(6)*asin(sqrt(
x + 1/2))/2 - sqrt(6)*(x + 1/2)**(5/2)/sqrt(1/2 - x) + 3*sqrt(6)*(x + 1/2)**(3/2)/(2*sqrt(1/2 - x)) - sqrt(6)*
sqrt(x + 1/2)/(2*sqrt(1/2 - x)), True))

________________________________________________________________________________________